<%@page contentType="text/html"%>
<%@page pageEncoding="utf-8"%>

<%
    if(session.getAttribute("access") != "y" ){
        out.println("您無權存取此網頁，或超過存取期限　 !!") ;           
    }else{        
        out.println("登入成功! <br>") ; 
        out.println("<b>歡迎管理者：" + 
                session.getAttribute("accessid") + "!!</b>") ; 
    }
%>

<html>
    <head><title>管理者頁面</title></head>
    <body>
   <form method="post" action="logout.jsp">
        <% if(session.getAttribute("access") == "y" ) {   %>
        <td><input type="submit" value="登出" name="logout"></td>
        <a href="MEMBER/listmember.jsp"> 會員管理</a> 
        <a href="PFManage/lookPlace.jsp">場地設備處理</a> 
        <a href="SEARCH/search-1.jsp">搜尋</a> 
        <%}else{%> 
        <a href="index.jsp"> 登入</a>
        <%}%>
    </form>
    </body>
</html>